3.323 \(\int \cot ^3(c+d x) \sqrt {a+b \tan (c+d x)} (A+B \tan (c+d x)) \, dx\)
Optimal. Leaf size=219 \[ \frac {\left (8 a^2 A-4 a b B+A b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\sqrt {a-i b} (A-i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}-\frac {\sqrt {a+i b} (A+i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {(4 a B+A b) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d} \]
[Out]
1/4*(8*A*a^2+A*b^2-4*B*a*b)*arctanh((a+b*tan(d*x+c))^(1/2)/a^(1/2))/a^(3/2)/d-(A-I*B)*arctanh((a+b*tan(d*x+c))
^(1/2)/(a-I*b)^(1/2))*(a-I*b)^(1/2)/d-(A+I*B)*arctanh((a+b*tan(d*x+c))^(1/2)/(a+I*b)^(1/2))*(a+I*b)^(1/2)/d-1/
4*(A*b+4*B*a)*cot(d*x+c)*(a+b*tan(d*x+c))^(1/2)/a/d-1/2*A*cot(d*x+c)^2*(a+b*tan(d*x+c))^(1/2)/d
________________________________________________________________________________________
Rubi [A] time = 0.86, antiderivative size = 219, normalized size of antiderivative = 1.00,
number of steps used = 13, number of rules used = 8, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.242, Rules used
= {3608, 3649, 3653, 3539, 3537, 63, 208, 3634} \[ \frac {\left (8 a^2 A-4 a b B+A b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\sqrt {a-i b} (A-i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}-\frac {\sqrt {a+i b} (A+i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {(4 a B+A b) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d} \]
Antiderivative was successfully verified.
[In]
Int[Cot[c + d*x]^3*Sqrt[a + b*Tan[c + d*x]]*(A + B*Tan[c + d*x]),x]
[Out]
((8*a^2*A + A*b^2 - 4*a*b*B)*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a]])/(4*a^(3/2)*d) - (Sqrt[a - I*b]*(A - I*
B)*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a - I*b]])/d - (Sqrt[a + I*b]*(A + I*B)*ArcTanh[Sqrt[a + b*Tan[c + d*
x]]/Sqrt[a + I*b]])/d - ((A*b + 4*a*B)*Cot[c + d*x]*Sqrt[a + b*Tan[c + d*x]])/(4*a*d) - (A*Cot[c + d*x]^2*Sqrt
[a + b*Tan[c + d*x]])/(2*d)
Rule 63
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]
Rule 208
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]
Rule 3537
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c*
d)/f, Subst[Int[(a + (b*x)/d)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]
Rule 3539
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c
+ I*d)/2, Int[(a + b*Tan[e + f*x])^m*(1 - I*Tan[e + f*x]), x], x] + Dist[(c - I*d)/2, Int[(a + b*Tan[e + f*x]
)^m*(1 + I*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0]
&& NeQ[c^2 + d^2, 0] && !IntegerQ[m]
Rule 3608
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e
_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[((A*b - a*B)*(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n)/(
f*(m + 1)*(a^2 + b^2)), x] + Dist[1/(b*(m + 1)*(a^2 + b^2)), Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f
*x])^(n - 1)*Simp[b*B*(b*c*(m + 1) + a*d*n) + A*b*(a*c*(m + 1) - b*d*n) - b*(A*(b*c - a*d) - B*(a*c + b*d))*(m
+ 1)*Tan[e + f*x] - b*d*(A*b - a*B)*(m + n + 1)*Tan[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B},
x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] && LtQ[m, -1] && LtQ[0, n, 1] && (IntegerQ[
m] || IntegersQ[2*m, 2*n])
Rule 3634
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_.)*((A_) + (C_.)*
tan[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Dist[A/f, Subst[Int[(a + b*x)^m*(c + d*x)^n, x], x, Tan[e + f*x]], x]
/; FreeQ[{a, b, c, d, e, f, A, C, m, n}, x] && EqQ[A, C]
Rule 3649
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*t
an[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[((A*b^2 - a*(b*B - a*C))*(a + b*T
an[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^(n + 1))/(f*(m + 1)*(b*c - a*d)*(a^2 + b^2)), x] + Dist[1/((m + 1)*(
b*c - a*d)*(a^2 + b^2)), Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n*Simp[A*(a*(b*c - a*d)*(m + 1)
- b^2*d*(m + n + 2)) + (b*B - a*C)*(b*c*(m + 1) + a*d*(n + 1)) - (m + 1)*(b*c - a*d)*(A*b - a*B - b*C)*Tan[e
+ f*x] - d*(A*b^2 - a*(b*B - a*C))*(m + n + 2)*Tan[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C,
n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] && LtQ[m, -1] && !(ILtQ[n, -1] && ( !I
ntegerQ[m] || (EqQ[c, 0] && NeQ[a, 0])))
Rule 3653
Int[(((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (
f_.)*(x_)]^2))/((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[1/(a^2 + b^2), Int[(c + d*Tan[e + f*
x])^n*Simp[b*B + a*(A - C) + (a*B - b*(A - C))*Tan[e + f*x], x], x], x] + Dist[(A*b^2 - a*b*B + a^2*C)/(a^2 +
b^2), Int[((c + d*Tan[e + f*x])^n*(1 + Tan[e + f*x]^2))/(a + b*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e,
f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] && !GtQ[n, 0] && !LeQ[n, -
1]
Rubi steps
\begin {align*} \int \cot ^3(c+d x) \sqrt {a+b \tan (c+d x)} (A+B \tan (c+d x)) \, dx &=-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}-\frac {1}{2} \int \frac {\cot ^2(c+d x) \left (\frac {1}{2} (-A b-4 a B)+2 (a A-b B) \tan (c+d x)+\frac {3}{2} A b \tan ^2(c+d x)\right )}{\sqrt {a+b \tan (c+d x)}} \, dx\\ &=-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}+\frac {\int \frac {\cot (c+d x) \left (\frac {1}{4} \left (-8 a^2 A-A b^2+4 a b B\right )-2 a (A b+a B) \tan (c+d x)-\frac {1}{4} b (A b+4 a B) \tan ^2(c+d x)\right )}{\sqrt {a+b \tan (c+d x)}} \, dx}{2 a}\\ &=-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}+\frac {\int \frac {-2 a (A b+a B)+2 a (a A-b B) \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx}{2 a}+\frac {\left (-8 a^2 A-A b^2+4 a b B\right ) \int \frac {\cot (c+d x) \left (1+\tan ^2(c+d x)\right )}{\sqrt {a+b \tan (c+d x)}} \, dx}{8 a}\\ &=-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}+\frac {1}{2} ((i a-b) (A+i B)) \int \frac {1-i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx-\frac {(2 a (A b+a B)+2 i a (a A-b B)) \int \frac {1+i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx}{4 a}-\frac {\left (8 a^2 A+A b^2-4 a b B\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{8 a d}\\ &=-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}+\frac {((a-i b) (A-i B)) \operatorname {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a-i b x}} \, dx,x,i \tan (c+d x)\right )}{2 d}+\frac {((a+i b) (A+i B)) \operatorname {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+i b x}} \, dx,x,-i \tan (c+d x)\right )}{2 d}-\frac {\left (8 a^2 A+A b^2-4 a b B\right ) \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{4 a b d}\\ &=\frac {\left (8 a^2 A+A b^2-4 a b B\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}+\frac {((i a+b) (A-i B)) \operatorname {Subst}\left (\int \frac {1}{-1-\frac {i a}{b}+\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{b d}-\frac {((i a-b) (A+i B)) \operatorname {Subst}\left (\int \frac {1}{-1+\frac {i a}{b}-\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{b d}\\ &=\frac {\left (8 a^2 A+A b^2-4 a b B\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\sqrt {a-i b} (A-i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}-\frac {\sqrt {a+i b} (A+i B) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {(A b+4 a B) \cot (c+d x) \sqrt {a+b \tan (c+d x)}}{4 a d}-\frac {A \cot ^2(c+d x) \sqrt {a+b \tan (c+d x)}}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.73, size = 271, normalized size = 1.24 \[ \frac {\frac {\left (8 a^2 A-4 a b B+A b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {\frac {4 \left (-a A b+a \sqrt {-b^2} B+A \sqrt {-b^2} b+b^2 B\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-\sqrt {-b^2}}}\right )}{\sqrt {a-\sqrt {-b^2}}}-\frac {4 \left (a A b+a \sqrt {-b^2} B+A \sqrt {-b^2} b+b^2 (-B)\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+\sqrt {-b^2}}}\right )}{\sqrt {a+\sqrt {-b^2}}}-\frac {b \cot (c+d x) \sqrt {a+b \tan (c+d x)} (2 a A \cot (c+d x)+4 a B+A b)}{a}}{b}}{4 d} \]
Antiderivative was successfully verified.
[In]
Integrate[Cot[c + d*x]^3*Sqrt[a + b*Tan[c + d*x]]*(A + B*Tan[c + d*x]),x]
[Out]
(((8*a^2*A + A*b^2 - 4*a*b*B)*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a]])/a^(3/2) + ((4*(-(a*A*b) + A*b*Sqrt[-b
^2] + b^2*B + a*Sqrt[-b^2]*B)*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a - Sqrt[-b^2]]])/Sqrt[a - Sqrt[-b^2]] - (
4*(a*A*b + A*b*Sqrt[-b^2] - b^2*B + a*Sqrt[-b^2]*B)*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a + Sqrt[-b^2]]])/Sq
rt[a + Sqrt[-b^2]] - (b*Cot[c + d*x]*(A*b + 4*a*B + 2*a*A*Cot[c + d*x])*Sqrt[a + b*Tan[c + d*x]])/a)/b)/(4*d)
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)^3*(a+b*tan(d*x+c))^(1/2)*(A+B*tan(d*x+c)),x, algorithm="fricas")
[Out]
Timed out
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)^3*(a+b*tan(d*x+c))^(1/2)*(A+B*tan(d*x+c)),x, algorithm="giac")
[Out]
Timed out
________________________________________________________________________________________
maple [C] time = 3.40, size = 81275, normalized size = 371.12 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cot(d*x+c)^3*(a+b*tan(d*x+c))^(1/2)*(A+B*tan(d*x+c)),x)
[Out]
result too large to display
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \tan \left (d x + c\right ) + A\right )} \sqrt {b \tan \left (d x + c\right ) + a} \cot \left (d x + c\right )^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)^3*(a+b*tan(d*x+c))^(1/2)*(A+B*tan(d*x+c)),x, algorithm="maxima")
[Out]
integrate((B*tan(d*x + c) + A)*sqrt(b*tan(d*x + c) + a)*cot(d*x + c)^3, x)
________________________________________________________________________________________
mupad [B] time = 7.90, size = 14195, normalized size = 64.82 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cot(c + d*x)^3*(A + B*tan(c + d*x))*(a + b*tan(c + d*x))^(1/2),x)
[Out]
(atan(((((((2*A^3*b^14*d^2 + 2*A^3*a^2*b^12*d^2 - 96*A^3*a^4*b^10*d^2 - 96*A^3*a^6*b^8*d^2 - 160*B^3*a^3*b^11*
d^2 - 160*B^3*a^5*b^9*d^2 + 48*A^2*B*a*b^13*d^2 - 192*A*B^2*a^2*b^12*d^2 + 96*A*B^2*a^4*b^10*d^2 + 288*A*B^2*a
^6*b^8*d^2 + 528*A^2*B*a^3*b^11*d^2 + 480*A^2*B*a^5*b^9*d^2)/(8*a^2*d^5) + (((((64*A*a*b^12*d^4 + 448*A*a^3*b^
10*d^4 + 384*A*a^5*b^8*d^4 - 256*B*a^2*b^11*d^4 - 256*B*a^4*b^9*d^4)/(8*a^2*d^5) - ((512*a^2*b^10*d^4 + 768*a^
4*b^8*d^4)*(a + b*tan(c + d*x))^(1/2)*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6
*b - 8*A*B*a^4*b^3)^(1/2))/(64*a^5*d^5))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*
a^6*b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) - ((a + b*tan(c + d*x))^(1/2)*(128*B^2*a^3*b^10*d^2 - 576*A^2*a^5*b^8*
d^2 - 256*A^2*a^3*b^10*d^2 + 320*B^2*a^5*b^8*d^2 - 4*A^2*a*b^12*d^2 + 544*A*B*a^2*b^11*d^2 + 1024*A*B*a^4*b^9*
d^2))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)
^(1/2))/(8*a^3*d))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)
^(1/2))/(8*a^3*d) - ((a + b*tan(c + d*x))^(1/2)*(A^2*B^2*b^14 - A^4*b^14 + 17*A^4*a^2*b^12 + 16*A^4*a^4*b^10 +
96*A^4*a^6*b^8 + 48*B^4*a^2*b^12 + 48*B^4*a^4*b^10 + 32*B^4*a^6*b^8 + 95*A^2*B^2*a^2*b^12 + 448*A^2*B^2*a^4*b
^10 - 8*A*B^3*a*b^13 + 4*A^3*B*a*b^13 - 120*A*B^3*a^3*b^11 + 64*A*B^3*a^5*b^9 - 8*A^3*B*a^3*b^11 - 320*A^3*B*a
^5*b^9))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b
^3)^(1/2)*1i)/(a^3*d) - (((((2*A^3*b^14*d^2 + 2*A^3*a^2*b^12*d^2 - 96*A^3*a^4*b^10*d^2 - 96*A^3*a^6*b^8*d^2 -
160*B^3*a^3*b^11*d^2 - 160*B^3*a^5*b^9*d^2 + 48*A^2*B*a*b^13*d^2 - 192*A*B^2*a^2*b^12*d^2 + 96*A*B^2*a^4*b^10*
d^2 + 288*A*B^2*a^6*b^8*d^2 + 528*A^2*B*a^3*b^11*d^2 + 480*A^2*B*a^5*b^9*d^2)/(8*a^2*d^5) + (((((64*A*a*b^12*d
^4 + 448*A*a^3*b^10*d^4 + 384*A*a^5*b^8*d^4 - 256*B*a^2*b^11*d^4 - 256*B*a^4*b^9*d^4)/(8*a^2*d^5) + ((512*a^2*
b^10*d^4 + 768*a^4*b^8*d^4)*(a + b*tan(c + d*x))^(1/2)*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5
*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(64*a^5*d^5))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*
a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) + ((a + b*tan(c + d*x))^(1/2)*(128*B^2*a^3*b^10*d^2 -
576*A^2*a^5*b^8*d^2 - 256*A^2*a^3*b^10*d^2 + 320*B^2*a^5*b^8*d^2 - 4*A^2*a*b^12*d^2 + 544*A*B*a^2*b^11*d^2 +
1024*A*B*a^4*b^9*d^2))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b
- 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b
- 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) + ((a + b*tan(c + d*x))^(1/2)*(A^2*B^2*b^14 - A^4*b^14 + 17*A^4*a^2*b^12 +
16*A^4*a^4*b^10 + 96*A^4*a^6*b^8 + 48*B^4*a^2*b^12 + 48*B^4*a^4*b^10 + 32*B^4*a^6*b^8 + 95*A^2*B^2*a^2*b^12 +
448*A^2*B^2*a^4*b^10 - 8*A*B^3*a*b^13 + 4*A^3*B*a*b^13 - 120*A*B^3*a^3*b^11 + 64*A*B^3*a^5*b^9 - 8*A^3*B*a^3*b
^11 - 320*A^3*B*a^5*b^9))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^
6*b - 8*A*B*a^4*b^3)^(1/2)*1i)/(a^3*d))/((A^4*B*b^15 + 7*A^5*a*b^14 + A^2*B^3*b^15 + 63*A^5*a^3*b^12 + 56*A^5*
a^5*b^10 - 16*B^5*a^2*b^13 - 48*B^5*a^4*b^11 - 32*B^5*a^6*b^9 - 23*A^2*B^3*a^2*b^13 + 40*A^2*B^3*a^4*b^11 + 64
*A^2*B^3*a^6*b^9 + 55*A^3*B^2*a^3*b^12 + 112*A^3*B^2*a^5*b^10 + 64*A^3*B^2*a^7*b^8 - 8*A*B^4*a^3*b^12 + 56*A*B
^4*a^5*b^10 + 64*A*B^4*a^7*b^8 + 7*A^3*B^2*a*b^14 - 7*A^4*B*a^2*b^13 + 88*A^4*B*a^4*b^11 + 96*A^4*B*a^6*b^9)/(
a^2*d^5) + (((((2*A^3*b^14*d^2 + 2*A^3*a^2*b^12*d^2 - 96*A^3*a^4*b^10*d^2 - 96*A^3*a^6*b^8*d^2 - 160*B^3*a^3*b
^11*d^2 - 160*B^3*a^5*b^9*d^2 + 48*A^2*B*a*b^13*d^2 - 192*A*B^2*a^2*b^12*d^2 + 96*A*B^2*a^4*b^10*d^2 + 288*A*B
^2*a^6*b^8*d^2 + 528*A^2*B*a^3*b^11*d^2 + 480*A^2*B*a^5*b^9*d^2)/(8*a^2*d^5) + (((((64*A*a*b^12*d^4 + 448*A*a^
3*b^10*d^4 + 384*A*a^5*b^8*d^4 - 256*B*a^2*b^11*d^4 - 256*B*a^4*b^9*d^4)/(8*a^2*d^5) - ((512*a^2*b^10*d^4 + 76
8*a^4*b^8*d^4)*(a + b*tan(c + d*x))^(1/2)*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B
*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(64*a^5*d^5))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*
A*B*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) - ((a + b*tan(c + d*x))^(1/2)*(128*B^2*a^3*b^10*d^2 - 576*A^2*a^5*
b^8*d^2 - 256*A^2*a^3*b^10*d^2 + 320*B^2*a^5*b^8*d^2 - 4*A^2*a*b^12*d^2 + 544*A*B*a^2*b^11*d^2 + 1024*A*B*a^4*
b^9*d^2))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*
b^3)^(1/2))/(8*a^3*d))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*
b^3)^(1/2))/(8*a^3*d) - ((a + b*tan(c + d*x))^(1/2)*(A^2*B^2*b^14 - A^4*b^14 + 17*A^4*a^2*b^12 + 16*A^4*a^4*b^
10 + 96*A^4*a^6*b^8 + 48*B^4*a^2*b^12 + 48*B^4*a^4*b^10 + 32*B^4*a^6*b^8 + 95*A^2*B^2*a^2*b^12 + 448*A^2*B^2*a
^4*b^10 - 8*A*B^3*a*b^13 + 4*A^3*B*a*b^13 - 120*A*B^3*a^3*b^11 + 64*A*B^3*a^5*b^9 - 8*A^3*B*a^3*b^11 - 320*A^3
*B*a^5*b^9))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a
^4*b^3)^(1/2))/(a^3*d) + (((((2*A^3*b^14*d^2 + 2*A^3*a^2*b^12*d^2 - 96*A^3*a^4*b^10*d^2 - 96*A^3*a^6*b^8*d^2 -
160*B^3*a^3*b^11*d^2 - 160*B^3*a^5*b^9*d^2 + 48*A^2*B*a*b^13*d^2 - 192*A*B^2*a^2*b^12*d^2 + 96*A*B^2*a^4*b^10
*d^2 + 288*A*B^2*a^6*b^8*d^2 + 528*A^2*B*a^3*b^11*d^2 + 480*A^2*B*a^5*b^9*d^2)/(8*a^2*d^5) + (((((64*A*a*b^12*
d^4 + 448*A*a^3*b^10*d^4 + 384*A*a^5*b^8*d^4 - 256*B*a^2*b^11*d^4 - 256*B*a^4*b^9*d^4)/(8*a^2*d^5) + ((512*a^2
*b^10*d^4 + 768*a^4*b^8*d^4)*(a + b*tan(c + d*x))^(1/2)*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^
5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(64*a^5*d^5))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2
*a^5*b^2 - 64*A*B*a^6*b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) + ((a + b*tan(c + d*x))^(1/2)*(128*B^2*a^3*b^10*d^2
- 576*A^2*a^5*b^8*d^2 - 256*A^2*a^3*b^10*d^2 + 320*B^2*a^5*b^8*d^2 - 4*A^2*a*b^12*d^2 + 544*A*B*a^2*b^11*d^2 +
1024*A*B*a^4*b^9*d^2))/(8*a^2*d^4))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*
b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d))*(64*A^2*a^7 + A^2*a^3*b^4 + 16*A^2*a^5*b^2 + 16*B^2*a^5*b^2 - 64*A*B*a^6*
b - 8*A*B*a^4*b^3)^(1/2))/(8*a^3*d) + ((a + b*tan(c + d*x))^(1/2)*(A^2*B^2*b^14 - A^4*b^14 + 17*A^4*a^2*b^12 +
16*A^4*a^4*b^10 + 96*A^4*a^6*b^8 + 48*B^4*a^2*b^12 + 48*B^4*a^4*b^10 + 32*B^4*a^6*b^8 + 95*A^2*B^2*a^2*b^12 +
448*A^2*B^2*a^4*b^10 - 8*A*B^3*a*b^13 + 4*A^3*B*a*b^13 - 120*A*B^3*a^3*b^11 + 64*A*B^3*a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^2*d^4 + 4*A*B^3*a*b*d^4 - 4
*A^3*B*a*b*d^4)^(1/2)/(4*d^4) + (A^2*a)/(4*d^2) - (B^2*a)/(4*d^2) - (A*B*b)/(2*d^2))^(1/2) + (A^4*B*b^15 + 7*A
^5*a*b^14 + A^2*B^3*b^15 + 63*A^5*a^3*b^12 + 56*A^5*a^5*b^10 - 16*B^5*a^2*b^13 - 48*B^5*a^4*b^11 - 32*B^5*a^6*
b^9 - 23*A^2*B^3*a^2*b^13 + 40*A^2*B^3*a^4*b^11 + 64*A^2*B^3*a^6*b^9 + 55*A^3*B^2*a^3*b^12 + 112*A^3*B^2*a^5*b
^10 + 64*A^3*B^2*a^7*b^8 - 8*A*B^4*a^3*b^12 + 56*A*B^4*a^5*b^10 + 64*A*B^4*a^7*b^8 + 7*A^3*B^2*a*b^14 - 7*A^4*
B*a^2*b^13 + 88*A^4*B*a^4*b^11 + 96*A^4*B*a^6*b^9)/(a^2*d^5)))*((2*A^2*B^2*b^2*d^4 - B^4*b^2*d^4 - 4*A^2*B^2*a
^2*d^4 - A^4*b^2*d^4 + 4*A*B^3*a*b*d^4 - 4*A^3*B*a*b*d^4)^(1/2)/(4*d^4) + (A^2*a)/(4*d^2) - (B^2*a)/(4*d^2) -
(A*B*b)/(2*d^2))^(1/2)*2i - (((A*b^2)/4 - B*a*b)*(a + b*tan(c + d*x))^(1/2) + ((A*b^2 + 4*B*a*b)*(a + b*tan(c
+ d*x))^(3/2))/(4*a))/(d*(a + b*tan(c + d*x))^2 + a^2*d - 2*a*d*(a + b*tan(c + d*x))) - atan(((((((64*A*a*b^12
*d^4 + 448*A*a^3*b^10*d^4 + 384*A*a^5*b^8*d^4 - 256*B*a^2*b^11*d^4 - 256*B*a^4*b^9*d^4)/(a^2*d^5) + ((512*a^2*
b^10*d^4 + 768*a^4*b^8*d^4)*(a + b*tan(c + d*x))^(1/2)*((A^2*a)/(4*d^2) - (2*A^2*B^2*b^2*d^4 - B^4*b^2*d^4 - 4
*A^2*B^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2) - ((a + b*tan(c + d*x))^(1/2)*(128*B^2*a^3*b^10*d^2 - 576*A^2*a^5*b^8*d^2 - 256*A^2
*a^3*b^10*d^2 + 320*B^2*a^5*b^8*d^2 - 4*A^2*a*b^12*d^2 + 544*A*B*a^2*b^11*d^2 + 1024*A*B*a^4*b^9*d^2))/(a^2*d^
4))*((A^2*a)/(4*d^2) - (2*A^2*B^2*b^2*d^4 - B^4*b^2*d^4 - 4*A^2*B^2*a^2*d^4 - A^4*b^2*d^4 + 4*A*B^3*a*b*d^4 -
4*A^3*B*a*b*d^4)^(1/2)/(4*d^4) - (B^2*a)/(4*d^2) - (A*B*b)/(2*d^2))^(1/2) + (2*A^3*b^14*d^2 + 2*A^3*a^2*b^12*d
^2 - 96*A^3*a^4*b^10*d^2 - 96*A^3*a^6*b^8*d^2 - 160*B^3*a^3*b^11*d^2 - 160*B^3*a^5*b^9*d^2 + 48*A^2*B*a*b^13*d
^2 - 192*A*B^2*a^2*b^12*d^2 + 96*A*B^2*a^4*b^10*d^2 + 288*A*B^2*a^6*b^8*d^2 + 528*A^2*B*a^3*b^11*d^2 + 480*A^2
*B*a^5*b^9*d^2)/(a^2*d^5))*((A^2*a)/(4*d^2) - (2*A^2*B^2*b^2*d^4 - B^4*b^2*d^4 - 4*A^2*B^2*a^2*d^4 - A^4*b^2*d
^4 + 4*A*B^3*a*b*d^4 - 4*A^3*B*a*b*d^4)^(1/2)/(4*d^4) - (B^2*a)/(4*d^2) - (A*B*b)/(2*d^2))^(1/2) - ((a + b*tan
(c + d*x))^(1/2)*(A^2*B^2*b^14 - A^4*b^14 + 17*A^4*a^2*b^12 + 16*A^4*a^4*b^10 + 96*A^4*a^6*b^8 + 48*B^4*a^2*b^
12 + 48*B^4*a^4*b^10 + 32*B^4*a^6*b^8 + 95*A^2*B^2*a^2*b^12 + 448*A^2*B^2*a^4*b^10 - 8*A*B^3*a*b^13 + 4*A^3*B*
a*b^13 - 120*A*B^3*a^3*b^11 + 64*A*B^3*a^5*b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^6*b^9)/(a^2*d^5)))*((
A^2*a)/(4*d^2) - (2*A^2*B^2*b^2*d^4 - B^4*b^2*d^4 - 4*A^2*B^2*a^2*d^4 - A^4*b^2*d^4 + 4*A*B^3*a*b*d^4 - 4*A^3*
B*a*b*d^4)^(1/2)/(4*d^4) - (B^2*a)/(4*d^2) - (A*B*b)/(2*d^2))^(1/2)*2i
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (A + B \tan {\left (c + d x \right )}\right ) \sqrt {a + b \tan {\left (c + d x \right )}} \cot ^{3}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)**3*(a+b*tan(d*x+c))**(1/2)*(A+B*tan(d*x+c)),x)
[Out]
Integral((A + B*tan(c + d*x))*sqrt(a + b*tan(c + d*x))*cot(c + d*x)**3, x)
________________________________________________________________________________________